package whu.edu.assignment4.mapper;

import org.apache.ibatis.annotations.Mapper;
import whu.edu.assignment4.dataobject.Product;
import whu.edu.assignment4.dataobject.UserProduct;

import java.util.List;

@Mapper
public interface ProductMapper {
    Product selectById(int pid);
    List<Product> selectAll();
    int insertUserProduct(UserProduct userProduct);
    int insertProduct(Product product);
    int deleteProductById(int pid);
    int updateProduct(Product product);
}
